package com.jd.cmdb.tsc.zk.exception;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by tianzhengguo on 2016/1/15.
 */
public final class ZKExceptionHandler {

    private static final Logger logger = LoggerFactory.getLogger(ZKExceptionHandler.class);

    public static void handlerZKException(Exception e){
        String message = String.format("zk操作发生异常:%s",e.getMessage());
        logger.error(message);
        throw new ZKException(message,e.getCause());
    }
}
